package com.yhsoft.buyer.controller.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author: yyyyyyyh
 * @create: 2023-10-16
 * @Version 1.0
 **/
@Data
public class OrderDetailOutVo {
    private BuyerAddressOutVo buyerAddressOutVo;
    private CartOutVo cartOutVo;

    @ApiModelProperty(value = "影片信息")
    private String flimInfo;

    @ApiModelProperty(value = "海报,影片等资源API")
    private String poster;

    /**
     * 取票码
     */
    @ApiModelProperty("取票码")
    private String flimTicketInfo;

    /**
     * 订单状态
     */
    @ApiModelProperty("订单状态 0-已完成 1-待支付 2-待发货 3-待收货 4-已取消 5-支付中 6-支付失败 7-已退款")
    private Integer orderStatus;

    @ApiModelProperty(value = "订单编号")
    private String orderId;

    @ApiModelProperty(value = "商品总额")
    private BigDecimal totlePrice;

    @ApiModelProperty(value = "总运费")
    private BigDecimal totleYF;

    @ApiModelProperty(value = "订单总金额")
    private BigDecimal payPrice;

    /**
     * 支付方式
     */
    @ApiModelProperty("支付方式  1-福利卡支付 2-微信支付 3-混合支付")
    private String payMethod;

    @ApiModelProperty(value = "福利卡支付金额")
    private BigDecimal cardPrice;

    @ApiModelProperty(value = "现金支付金额")
    private BigDecimal payablePrice;

    @ApiModelProperty(value = "下单日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime payTime;

    @ApiModelProperty("发货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime expressTime;

    @ApiModelProperty("订单完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime endTime;

}
